FROM java:8-jre
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]

ADD source/target/code-service-*.jar app.jar
CMD ["java", "-Xmx512m", "-jar", "app.jar"]

EXPOSE 8015
